package com.zjw.zy.base.publisher;

import androidx.annotation.NonNull;

import com.zjw.zy.smi.JustWithIt;

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/10/24 9:33
 */
public interface IPublisher<Observer> {

    void subscribe(@NonNull Observer observer);

    void unsubscribe(@NonNull Observer observer);

    void clear();

    void publish(@NonNull JustWithIt<Observer> call);
}
